package com.wwf;

import com.server.HttpServlet;
import com.server.Request;
import com.server.Responese;

import java.io.IOException;

/**
 * @author lulei
 * @date 2020年12月25日 13:47:51
 */
public class TestServlet1 extends HttpServlet{
    @Override
    public void doGet(Request request, Responese responese) {
        try {
            String outputstr="come in TestServlet get method";
            Thread.sleep(10000);
            responese.outpuStr(outputstr);
        } catch (IOException e) {
            e.printStackTrace();
        } catch (InterruptedException exception) {
            exception.printStackTrace();
        }
    }

    @Override
    public void doPost(Request request, Responese responese) {
        try {
            String outputstr="come in TestServlet post method";
            responese.outpuStr(outputstr);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void init() {

    }

    @Override
    public void destory() {

    }
}
